package cn.wp.ewallet.wallet.dao;

import cn.wp.common.core.model.WpPage;
import cn.wp.ewallet.wallet.model.entity.ExchangeMoneyInfoDo;
import cn.wp.ewallet.wallet.model.entity.ExchangeMoneyInfoDoo;

/**
 * 兑换申请单-数据访问层
 * Created by zhangyongli on 2020/01/09
 */
public interface ExchangeMoneyInfoDao {


    /**
     * 查询单个兑换申请单
     * @param orderId
     * @return
     */
    ExchangeMoneyInfoDoo selectExchangeMoneyReqOrderById(String orderId);

    /**
     * 查询兑换交易记录
     * @param address
     * @return
     */
    WpPage<ExchangeMoneyInfoDoo> selectExchangeMoneyReqOrderByaddress(String address, WpPage page);

    /**
     * 保存兑换申请单
     * @param exchangeMoneyInfoDo
     */
    void insertExchangeMoneyInfo(ExchangeMoneyInfoDo exchangeMoneyInfoDo);
}